/**
 * 
 */
package info.niwota.webime.http;

import java.io.Serializable;
import java.net.URI;


/**
 * @author qiangli
 * 
 */
public class WebContext implements Serializable {
	private static final long serialVersionUID = 1L;

	private String protocol; //http xmpp ...
	
	private String localHost;
	
	private int localPort;
	
	private String remoteHost;
	
	private int remotePort;
	
	private String remotePeer;

	public URI baseUri;

	private String pathPrefix;

	public ServerContext serverContext;
	
	public WebContext(String protocol) {
		this.protocol = protocol;
	}

	public String getLocalHost() {
		return localHost;
	}

	public void setLocalHost(String localHost) {
		this.localHost = localHost;
	}

	public int getLocalPort() {
		return localPort;
	}

	public void setLocalPort(int localPort) {
		this.localPort = localPort;
	}

	public String getRemoteHost() {
		return remoteHost;
	}

	public void setRemoteHost(String remoteHost) {
		this.remoteHost = remoteHost;
	}

	public int getRemotePort() {
		return remotePort;
	}

	public void setRemotePort(int remotePort) {
		this.remotePort = remotePort;
	}

	public String getRemotePeer() {
		return remotePeer;
	}

	public void setRemotePeer(String remotePeer) {
		this.remotePeer = remotePeer;
	}

	public String getPathPrefix() {
		return pathPrefix;
	}
	
	public String getProtocol() {
		return protocol;
	}

	public void setProtocol(String protocol) {
		this.protocol = protocol;
	}
}
